package org.example.server.controller;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class xxx {
    @RequestMapping(value="/ches")
    public String ches() {
        System.out.println("成功");
        return "123";
    }
    @RequestMapping(value="/login" ,method = RequestMethod.OPTIONS)
    public String login() {
        System.out.println("成功");
        return "123";
    }

}
